import request from '@/utils/request'

// 查询省份列表
export function getProvinceList() {
  return request({
    url: '/system/city/province',
    method: 'get'
  })
}

// 根据省份ID查询城市列表
export function getCityList(provinceId) {
  return request({
    url: '/system/city/city',
    method: 'get',
    params: { provinceId }
  })
}

// 根据城市ID查询区县列表
export function getDistrictList(cityId) {
  return request({
    url: '/system/city/district',
    method: 'get',
    params: { cityId }
  })
}